﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using VietPublisher.Web.Framework;
using VietPublisher.BSL.BK;
using VietPublisher.BaseProject.Models;

namespace VietPublisher.Web.BK.Controllers.Admin
{
    public class ReportController : StringBaseEntityController
    {
        //
        // GET: /Report/
        [Authorize] 
        public ActionResult Index()
        {
            return View();
        }

        //
        // GET: /Report/
        [Authorize]
        public ActionResult ReportList()
        {
            return View();
        }

        //
        // GET: /Report/Details/5
        [Authorize] 
        public ActionResult Details(int id)
        {
            return View();
        }

        //
        // GET: /Report/Create
        [Authorize] 
        public ActionResult Create()
        {
            return View();
        } 

        //
        // POST: /Report/Create

        [HttpPost,Authorize]
        public ActionResult Create(FormCollection collection)
        {
            try
            {
                // TODO: Add insert logic here

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
        
        //
        // GET: /Report/Edit/5
        [Authorize] 
        public ActionResult Edit(int id)
        {
            return View();
        }

        //
        // POST: /Report/Edit/5

        [HttpPost,Authorize]
        public ActionResult Edit(int id, FormCollection collection)
        {
            try
            {
                // TODO: Add update logic here
 
                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }

        //
        // GET: /Report/Delete/5
        [Authorize] 
        public ActionResult Delete(int id)
        {
            return View();
        }

        //
        // POST: /Report/Delete/5

        [HttpPost,Authorize]
        public ActionResult Delete(int id, FormCollection collection)
        {
            try
            {
                // TODO: Add delete logic here
 
                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
    }
}
